/*
 * \brief  Server-side de-marshaller of rom session interface
 * \author Norman Feske
 * \date   2006-07-06
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__ROM_SESSION__SERVER_H_
#define _INCLUDE__ROM_SESSION__SERVER_H_

#include <rom_session/rom_session.h>
#include <base/server.h>

namespace Genode {

	class Rom_session_server : public Server_object, public Rom_session
	{
		public:

			int dispatch(int op, Ipc_istream &is, Ipc_ostream &os)
			{
				switch (op) {
				case DATASPACE:
					{
						os << dataspace();
						return 0;
					}
				}
				return -1;
			}
	};
}

#endif /* _INCLUDE__ROM_SESSION__SERVER_H_ */
